<template>
  <div>
    <h2>{{ chooseTitle }}</h2>
    <h3>{{ small_title }}</h3>
    <div>
        <button v-for="(item,index) in board" :key="index" @click="choosing(item)">{{ index }}. {{ item }}</button>
    </div>
  </div>
</template>

<script setup>

    const props = defineProps(['chooseTitle','small_title','board','already_choose','choose_who'])
    const choosing = (item) => {
        emit('update:already_choose',true);
        emit('update:choose_who',item);
    }

</script>
